
<!DOCTYPE html>
<html>
<head>
<title>IT工程师后台管理</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
<link href='css/core/bootstrap.css' media='all' rel='stylesheet' type='text/css' />
<link href='css/core/light-theme.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' />
<link href='css/uploadify.css' media='all' rel='stylesheet' type='text/css' />
<link href='css/base.css' media='all' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class=''>
<header id="header">
</header>

<div id='wrapper'>
    <div id='main-nav-bg'></div>
    <nav class='' id='main-nav'>
        <div id="guide" class='navigation'>
        </div>
    </nav>
    <section id='content'>
        <div class='container-fluid'>
            <div class='row-fluid' id='content-wrapper'>
                <div class='span12'>
                    <div class='page-header'>
                        <h1 class='pull-left'>
                            <i class='icon-dashboard'></i>
                            <span>博创华宇教育管理</span>
                        </h1>
                    </div>
                    <div class='row-fluid'>
                        <div class='span12 box bordered-box blue-border'>
                            <div class='box-header'>
                                <div id='title' class='title'>
                                    <i class='icon-user-md'></i>
                                </div>
                            </div>
                            <div class='box-content box-double-padding'>
                                <div class='form' style='margin-bottom: 0;'>
                                    <fieldset>
                                        <div id="form" class='span7 offset1'>
                                            <div class='control-group'>
                                                <label class='control-label'>姓名</label>
                                                <div class='controls'>
                                                    <input class='span4' id='name' placeholder='' type='text' />
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>描述</label>
                                                <div class='controls'>
                                                    <input class='span10' id='desc' placeholder='' type='text' />
                                                </div>
                                            </div>
                                            <div id='photoBtn'></div>
                   							<div id='photoList' class='muted'></div>
                                        </div>
                                    </fieldset>
                                    <div class='form-actions' style='margin-bottom: 0;'>
                                        <div class='text-right'>
                                            <div id="update" class='btn btn-primary btn-large'>
                                                <i class='icon-save'></i>
                                                提交
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>   
        </div>            
    </section>
</div>
<script src='js/core/jquery.min.js' type='text/javascript'></script>
<script src='js/core/uploadify.js' type='text/javascript'></script>
<script src='js/core.js' type='text/javascript'></script>
<script src='js/res.js' type='text/javascript'></script>
<script src='js/init.js' type='text/javascript'></script>
<script src='js/teacher.js' type='text/javascript'></script>
</body>
<script type="text/javascript">
    $("#photoBtn").uploadify({
        'swf'        : 'js/core/uploadify.swf',
        'uploader'   :  Core.API_VER+"/upload",
        'buttonText' : '上传图片',
        'method':"post",
        'fileTypeDesc': '请选择图片格式', 
        'fileTypeExts': '*.jpg;*.jpeg;*.png;*.gif;*.swf',
        'fileSizeLimit'   : '3072',
        'onUploadSuccess' : function(file, res) {
            res = eval('(' + res + ')');
            if (res.code) {
                $alert(res.codemsg);
                return;
            }                    
            var url = res.result.url;   
            $("#photoList").html('<img src="' + Core.IMG_VER + url + '" style="width:70%;"><input id="photo" type="hidden" value="' + url + '">');                    
        },
        'onUploadStart' : function(file) {
                             
        } 
    });
  Teacher.updateInit();
</script>
</html>